package com.miaoshapro.response;

public class CommonResponse {
    private String status;
    private Object data;

    public static CommonResponse create(Object data) {
        return CommonResponse.create("success", data);
    }

    public static CommonResponse create(String status, Object data) {
        CommonResponse commonResponse = new CommonResponse();
        commonResponse.setStatus(status);
        commonResponse.setData(data);
        return commonResponse;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
